package com.itheima.day5;

import java.util.Arrays;

public class Student {
    private String name;
    private String pass;
    private String[] hobby;

    public Student() {
    }

    public Student(String name, String pass, String[] hobby) {
        this.name = name;
        this.pass = pass;
        this.hobby = hobby;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", pass='" + pass + '\'' +
                ", hobby=" + Arrays.toString(hobby) +
                '}';
    }
}
